<h3>Kết quả tìm kiếm theo từ khoá: <?php echo $field?></h3>Tìm được <?php echo count($rs)?> sản phẩm
	<?php
		if($rs):
			$end = count($rs) - 1;
	?>
	<div class="productList">
		<?php
		$i = 0;
		foreach($rs as $key=>$item):
		$i++;
		?>
		<div class="productListItem<?php if($i % 4 == 0) echo ' productListItemEnd'?>">
			<?php
			$url = '/san-pham/'.$item['Product']['slug'];
			$image_path = '/upload_files/'.$item['Product']['photo_dir'].'/'.$item['Product']['photo'];
			if(!file_exists(WWW_ROOT.$image_path)){
				$image_path = 'no_image.jpg';
			}
			echo $this->Html->image($image_path,array('alt'=>$item['Product']['name'],'title'=>$item['Product']['name'],'url'=>$url,'width'=>140));
			?>
			<div><strong><?php echo $item['Product']['name']?></strong></div>
			<strong>Mã SP:</strong> <?php echo $item['Product']['product_code']?><br>
			<strong>Giá:</strong> <span class="productListItemPrice"><?php echo number_format($item['Product']['price'])?> VND</span>
		</div>
		<?php endforeach;?>					
	</div>
	<?php else:?>
	Xin lỗi hiện giờ chưa có sản phẩm nào thuộc mục này
	<?php endif;?>
	<?php echo $this->element('paging')?>